package com.vouov.apps.service.interfaces;

import com.vouov.apps.bean.User;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * User: yuminglong
 * Date: 11-10-27
 * Time: 上午2:16
 * Version: 1.0.0
 */
public interface IUserService {
    @Transactional
    public void addUsers(User[] users) throws Exception;
    public void addUser(User user) throws Exception;
    @Transactional
    public void removeUsers(User[] users) throws Exception;
    public void removeUser(User user) throws Exception;
    @Transactional
    public void updateUsers(User[] users) throws Exception;
    public void updateUsers(User user) throws Exception;

    public User getUserById(long id) throws Exception;
    List<User> queryUsers(String userName,int sex, int limitStart, int  limit);
    int queryUsersCount(String userName,int sex);
}
